package com.syzg.common.model;

import java.util.ArrayList;
import java.util.List;

public class WebInfo
{
  public static final String STATUS_SUCCESS = "success";
  public static final String STATUS_FAILURE = "failure";
  private List<String> errorList;
  private List<String> infoList;
  private String actionStatus;

  public WebInfo()
  {
    this.errorList = new ArrayList();
    this.infoList = new ArrayList();
  }

  public void addError(String error) {
    this.errorList.add(error);
  }

  public void addInfo(String info) {
    this.infoList.add(info);
  }

  public void setActionStatus(String actionStatus) {
    this.actionStatus = actionStatus;
  }

  public List<String> getErrorList() {
    return this.errorList;
  }

  public void setErrorList(List<String> errorList) {
    this.errorList = errorList;
  }

  public List<String> getInfoList() {
    return this.infoList;
  }

  public void setInfoList(List<String> infoList) {
    this.infoList = infoList;
  }

  public String getActionStatus() {
    return this.actionStatus;
  }
}